package com.pig.dao;

import com.pig.pojo.recipes.Condiment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CondimentDao {
    @Select("select * from p_condiment where recipesId=#{id}")
    List<Condiment> findBydetailsId(Integer id);
    int insertFoodMat(Condiment condiment);

    void deleteByRecipesId(Long recipesId);

    void updateFoodMat(Condiment condiment);
}
